/**
 * 
 */
package orion.jarvis.task;


/**
 * @author Ted
 * 
 */
public class ProcessStatus {
	public static final ProcessStatus SUCCESS = new ProcessStatus("SUCCESS");
	public static final ProcessStatus FAIL = new ProcessStatus("FAIL");
	public static final ProcessStatus WARNING = new ProcessStatus("WARNING");
	private String desc;

	private ProcessStatus(String desc) {
		this.desc = desc;
	}

	public boolean isEqual(ProcessStatus status) {
		if (status instanceof ProcessStatus)
			return this == status;
		else
			return false;
	}

	public String getDesc() {
		return desc;
	}

}
